import Vue from 'vue'
import Router from 'vue-router'
import Design from "@/components/Design";
//@  表示 src 根目录
import Bazaar from "@/components/Bazaar";
import Develop from "@/components/Develop";

Vue.use(Router)

export default new Router({
  //定义路由规则
  routes: [
    {
      path: '/',
      name: 'Design',
      component: Design
    },
    {
      path:'/bazaar',
      name:'Bazaar',
      component:Bazaar
    },
    {
      path:'/develop',
      name:'Develop',
      component:Develop,
    }
  ],
  //model  修改路由规则，hash是路径带#一般用于调试
  //model:'history' 路径不带#  一般用于发布
  mode:'history'
})
